<style type="text/css">
  /*th width*/
  html>body thead.datagrid th{
    width: 100px;
  }
  
  html>body thead.datagrid th + th{
    width: 250px;
  }  
  
  html>body thead.datagrid th + th + th{
    width: 100px;
  }
  
  html>body thead.datagrid th + th + th + th{
    width: 100px;
  }
  
  html>body thead.datagrid th + th + th + th + th{
    width: 100px;
  }
  
  html>body thead.datagrid th + th + th + th + th + th{
    width: 100px;
  }
  
  html>body thead.datagrid th + th + th + th + th + th +th{
    width: 16px;
  }
  
  /*td width*/
  html>body tbody.datagrid td{
    width: 100px;
  }
  
  html>body tbody.datagrid td + td{
    width: 250px;
  }  
  
  html>body tbody.datagrid td + td + td{
    width: 100px;
  }
  
  html>body tbody.datagrid td + td + td + td{
    width: 100px;
  }
  
  html>body tbody.datagrid td + td + td + td + td{
    width: 100px;
  }
  
  html>body tbody.datagrid td + td + td + td + td + td{
    width: 100px;
  }
  
  html>body tbody.datagrid td + td + td + td + td + td + td{
    width: 16px;
  }

</style>

<table id="gridContactSearch" class="datagrid">
  <thead class="datagrid">
    <tr>
      <th id="test">
        Type
      </th>
      <th>
        Name
      </th>
      <th>
        Fax
      </th>
      <th>
        Phone
      </th>
      <th>
        Email
      </th>
      <th>
        City
      </th>
      <th>
      </th>
    </tr>
  </thead>
  <tbody class="datagrid">
    <?php foreach($contacts as $contact):?>
      <?php include_partial('search_grid_tr',array('contact'=>$contact,'select_url'=>$select_url,))?>
    <?php endforeach;?>
    <tr id="last_row_contact" style="display:none;">
    </tr>
  </tbody>
</table>